package cqg;

import java.util.Date;

/**
 * A code quality faults report.
 * <br><br>
 * @author Julio César Pérez Arques
 */
public class CqgReport {
	
	protected Provider provider;
	protected Date date;
	protected int criticalFaultsCount;
	protected int majorFaultsCount;
	protected int minorFaultsCount;
	protected int analyzedFilesCount;
	
	public int getTotalFaultsCount() {
		return minorFaultsCount + majorFaultsCount + criticalFaultsCount;
	}

	public Provider getProvider() {
		return provider;
	}
	public void setProvider(Provider provider) {
		this.provider = provider;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public int getCriticalFaultsCount() {
		return criticalFaultsCount;
	}
	public void setCriticalFaultsCount(int criticalFaultsCount) {
		this.criticalFaultsCount = criticalFaultsCount;
	}
	public int getMajorFaultsCount() {
		return majorFaultsCount;
	}
	public void setMajorFaultsCount(int majorFaultsCount) {
		this.majorFaultsCount = majorFaultsCount;
	}
	public int getMinorFaultsCount() {
		return minorFaultsCount;
	}
	public void setMinorFaultsCount(int minorFaultsCount) {
		this.minorFaultsCount = minorFaultsCount;
	}
	public int getAnalyzedFilesCount() {
		return analyzedFilesCount;
	}
	public void setAnalyzedFilesCount(int analyzedFilesCount) {
		this.analyzedFilesCount = analyzedFilesCount;
	}	
}
